<?php 
include("include/config.inc.php");
  $cityArray = array();
  $j=0;
  $flag=0;
  $selectCity = "SELECT partyId,partyName 
                   FROM party";
  $selectCityRes = mysql_query($selectCity);
  while($partyRow = mysql_fetch_array($selectCityRes))
  {
  	$flag=1;
  	$cityArray[$j]['partyId'] = $partyRow['partyId'];
  	$cityArray[$j]['partyName']    = $partyRow['partyName'];
  	$j++;
  }  
if($flag==0)
{
echo "<tr><td colspan='3' align='center' style='color:red'>Record not
found</td></tr>";
}  
$smarty->assign('cityArray',$cityArray);  
$smarty->display('search.tpl');
?>